package com.yzh.croom.model.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

@Entity(name = "tb_room")
public class Room implements Serializable {
    @Id
    @Column(name = "room_id")
    private String roomId;
    @Column(name = "room_size")
    private int roomSize;
    @Column(name = "room_des")
    private String roomDes;
    @Column(name = "room_loc")
    private String roomLoc;

    @Override
    public String toString() {
        return "Room{" +
                "roomId='" + roomId + '\'' +
                ", roomSize=" + roomSize +
                ", roomDes='" + roomDes + '\'' +
                ", roomLoc='" + roomLoc + '\'' +
                '}';
    }

    public String getRoomId() {
        return roomId;
    }

    public Room setRoomId(String roomId) {
        this.roomId = roomId;
        return this;
    }

    public int getRoomSize() {
        return roomSize;
    }

    public Room setRoomSize(int roomSize) {
        this.roomSize = roomSize;
        return this;
    }

    public String getRoomDes() {
        return roomDes;
    }

    public Room setRoomDes(String roomDes) {
        this.roomDes = roomDes;
        return this;
    }

    public String getRoomLoc() {
        return roomLoc;
    }

    public Room setRoomLoc(String roomLoc) {
        this.roomLoc = roomLoc;
        return this;
    }
}
